FROM centos:7

#设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

RUN yum -y install https://extras.getpagespeed.com/release-el$(rpm -E %{rhel})-latest.rpm \
  && yum -y install nginx-module-flv


ADD http-flv/http-flv.conf /etc/nginx/
ADD http-flv/rtmp.conf /etc/nginx/

ADD nginx.conf /etc/nginx/
RUN chmod -R 777 /etc/nginx/

# container listener port
EXPOSE 8080
EXPOSE 1935

ENTRYPOINT nginx -g "daemon off;"
